package edu.yzu.testspringboot002.convert;


import edu.yzu.testspringboot002.po.Role;
import edu.yzu.testspringboot002.po.dto.SysRoleDTO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;

import java.util.List;

/**
 * 菜单转换映射器
 *
 */

@Mapper(
        componentModel = "spring",
        nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE
)
public interface RoleConvertMapper {

    abstract List<SysRoleDTO> toSysRoleDTOList(List<Role> list);

    abstract SysRoleDTO toSysRoleDTO(Role entity);

    abstract Role toSysRolePO(SysRoleDTO dto);
}

